#include "real.h"
#include "tag.h"
#include <sstream>
using namespace std;

Real::Real(double val):Token(Tag::REAL),val(val) {}

string Real::toString(void) const {
	stringstream ss;
	ss<<"<real,";
	ss<<val<<">";
	return ss.str();
}

double Real::getVal(void) const {
	return val;
}

Real* Real::clone(void) const {
	return new Real(*this);
}